class Task{
	User reporter
	String description
	Date creationDate = new Date()
	Date lastUpdateDate = new Date()
	TaskState state = new OpenTask()
	Integer estimatedHours
	Integer remainingHours
	
	static constraints = {
		description(maxLength:500, blank:false)
		state()
	}
	static hasMany = [comments : Comment]
	static belongsTo = [owner : User]
}
